module ActiveDirectory
  module Datatypes
    class UnicodePassword < Base
      def self.to_local(value)
        nil
      end

      def self.to_remote(value)
        ("\"#{value}\"".split(//).collect { |c| "#{c}\000" }).join
      end
    end
  end
end
